package com.micro.train.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 火车车厢实体类
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("列车车厢")
public class TrainCarriage {
    
    @TableId(value = "车厢ID", type = IdType.AUTO)
    private Long carriageId;
    
    @TableField("列车ID")
    private Long trainId;
    
    @TableField("车厢号")
    private String carriageNumber;
    
    @TableField("车厢类型")
    private Integer carriageType;
    
    @TableField("座位数量")
    private Integer seatCount;
    
    @TableField(value = "创建时间", fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(value = "更新时间", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    
    @TableLogic
    @TableField("deleted")
    private Integer deleted;
}
